'''
Created on 13-Jul-2010

@author: asa
'''

import time

class Rating:
    def __init__(self, rater, rating = 0):
        self.rating = rating
        self.rater = rater
        self.timestamp = time.time()
    
    def __cmp__(self, o):
        if isinstance(o, Rating):
            return self.rater == o.rater
        else:
            return False
